<!DOCUMENT HTML>
<html>
    <head><title> Fotos</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/album.css">

    </head>

    <body>
        <h1>Albuns</h1>
        <?php
        session_start();
        require 'checksLogged.php';
        include 'menu.php';
        ?>

        <br>
        <br>
        <?php
        include 'action/listAlbunsAction.php';

        if ($allalbuns) {
            foreach ($allalbuns as $album) {
                ?>
                <ul class="fotos">
                    <li><label><?php echo $album->getNameAlbum(); ?>
                            <a href="index.php?album=<?php echo $album->getIdAlbum(); ?>">
                                <img src="<?php echo $album->getDirectory() . $album->getNameUser() . "/" . $album->getNameAlbum() . '/' . $album->getPhotoCapa() ?>" width=80 height=80 border=3 >
                            </a></label>
                    </li>
                </ul>  

                <?php
            }
        }
        else
            echo"Nem um registro encontrado.";
        ?>
    </body>

</html>
